package com.example.thegreatwall.controller;

import com.example.thegreatwall.common.R;
import com.example.thegreatwall.entity.RefundApplication;
import com.example.thegreatwall.service.RefundApplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin(origins = "*") //无论什么源都可以访问  不写这个不允许跨域
@RestController
@RequestMapping(value = "/refund")
public class RefundApplicationController {
    @Autowired
    private RefundApplicationService refundApplicationService;
    @PostMapping(value = "tuikuan")
    public String xintuikuan(@RequestBody RefundApplication refundApplication) {
        refundApplicationService.save(refundApplication);
        return "success";
    }

}